package com.mrzhang.common.annotation;

import com.mrzhang.common.config.GlptAuthExceptionConfig;
import com.mrzhang.common.validator.MobileValidator;
import org.springframework.context.annotation.Import;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * @author 张霄峰
 * @email 29839415@qq.com
 * @date 2020/4/8 15:38
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MobileValidator.class)
public @interface IsMobile {
    String message();

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
